package com.example.springpethospital.entity;

public enum UserType {
    User, Admin;

    public static UserType toUserType(int value) {
        if (value == 1) return Admin;
        else return User;
    }

    public int toInteger() {
        return this.ordinal();
    }
}